package com.sl.au.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name = "sl_au_geolocation")
public class GeoLocation extends Root {

	@Column(nullable = false,name="nLatitude")	
	private Double latitude;
	@Column(nullable = false,name="nLogitude")
	private Double longitude;
	@Column(name="sPlace")
	private String place;
	
	@OneToOne
	@JoinColumn(unique = false)
	private User user;

	public Double getLatitude() {
		return latitude;
	}

	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}

	public Double getLongitude() {
		return longitude;
	}

	public void setLongitude(Double longitude) {
		this.longitude = longitude;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getPlace() {
		return place;
	}

	public void setPlace(String place) {
		this.place = place;
	}
	
	
}
